package com.deer.wms.base.system.dao.check;

import com.deer.wms.base.system.model.check.*;
import com.deer.wms.base.system.model.zh.WorkTasks;
import com.deer.wms.common.core.commonMapper.Mapper;

import java.util.List;

public interface BoxItemCheckMapper extends Mapper<BoxItemCheck> {
    List<BoxCheckDetail> boxCheckDetail(BoxCheckDetail boxCheckDetail);
    List<BoxItemCheck> selectallPda(BoxItemCheck boxItemCheck);
    List<BoxItemCheck>selectall(BoxItemCheck boxItemCheck);
    /*创建盘点单*/
    void insertBoxItemCheck(BoxItemCheck boxItemCheck);
    /*根据id查询盘点列表*/
    BoxItemCheckDetail findCheckDetailById(Integer boxId);
    /*创建盘点明细*/
    int blockedBoxItem(BoxItemCheckDetail boxItemCheckDetail);
    /*开始盘点*/
    List<BoxItemCheckDetail> findCheckDetailListById(Integer id);
    /*查询盘点托盘*/
    List<BoxItemCheckDetail> findCheckDetalBybatch(WorkTasks workTask);

    /*添加盘点结果*/
    void updateCheck(BoxItemCheckDetail boxItemCheckDetail);
    /*查询未盘点数量*/
    int findCheckOverSum(Integer boxItemCheckId);
    /*更改盘点单状态*/
    void updateCheckDetailGo(Integer boxItemCheckId);
    void updateCheckDetailOver(Integer boxItemCheckId);
    /*查盘点明细状态*/
    BoxItemCheckDetail selectCheckState(String cellCode);
    /*查询正在进行盘点单数量*/
    int findCheckState();

}